package com.randao.api.firstPage;

import com.randao.framework.common.model.response.QueryResponseResult;
import com.randao.framework.model.domain.entity.JsonResult;
import com.randao.framework.model.domain.house.Houses;
import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;

/**
 * @Author： ~Mr·Weng~
 * @CreateTime： 2019年-04月-16日  15:09
 * Look at the wine in the glass toast the rich first.
 */
@Api(value = "房子详情接口", description = "用户房子详情的管理，增删改查等")
public interface HousesManageApi {
    //查楼盘列表
    QueryResponseResult<Houses> findAll(int pageNum, int pageSize);

    //根据houses表的id查询house表的楼盘
    QueryResponseResult<Houses> findByHidAndFloor(String id, String floor);

    //根据楼层筛选房源列表
    QueryResponseResult<Houses> findByFloor(String floor);

    //根据房源id查询房源详情
    ResponseEntity<JsonResult> findById(String id);

    //展示图片
    ResponseEntity<JsonResult> findProductImg(String hid);
}
